
CC=g++
CFLAGS=-Wall `xml2-config --cflags`
LDFLAGS=-larchive `xml2-config --libs`

all: l1

l1: main.o dir.o fs-archive.o	
	$(CC) $(CFLAGS) $(LDFLAGS) main.cpp dir.cpp fs-archive.cpp -o l1

main.o: main.cpp
	$(CC) -c $(CFLAGS) main.cpp

dir.o: dir.cpp
	$(CC) -c $(CFLAGS) dir.cpp

fs-archive.o: fs-archive.cpp
	$(CC) -c $(CFLAGS) fs-archive.cpp

clean:
	rm -rf *.o l1




